﻿// 包装工厂
public abstract class AbsPackingFactoryBase
{
    public abstract void PackingSnack(Snack snack);
}

// 纸盒包装
public class PaperPackagingFactory : AbsPackingFactoryBase
{
    public override void PackingSnack(Snack snack)
    {
        snack.AddDescription("纸盒包装");
    }
}

// 塑料包装
public class PlasticPackagingFactory : AbsPackingFactoryBase
{
    public override void PackingSnack(Snack snack)
    {
        snack.AddDescription("塑料包装");
    }
}
